<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 1.行内js, 必须是事件格式 -->
    <button onclick="console.log('西兰花炒鸡蛋~~~')">点我点我点我</button>

    <!-- 2.适合 页面 中的逻辑, 或者简短的逻辑 -->
    <script>
        console.log('抹抹大')
    </script>

    <!-- 3.引入外部js -->
    <script src="../js/01.测试.js"></script>
</body>
</html>